<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // let str = '123'
    // console.log(Number(str));

    // console.log('pink');

    // let num = Number(prompt('输入年薪'))
    // console.log(num);

    // let num = +prompt('输入年薪')
    // console.log(num);

    // console.log(parseInt('12px'));
    // console.log(parseInt('12.89px'));
    // console.log(parseInt('12.34px'));
    // console.log(parseInt('ssss12.34px'));

    // console.log(parseFloat('12px'));
    // console.log(parseFloat('12.89px'));
    // console.log(parseFloat('12.34px'));
    // console.log(parseFloat('dddd12.34px'));

    // let num1 = +prompt('请输入第一个数')
    // let num2 = Number(prompt('请输入第二个数'))
    // document.write(num1 + num2)
    // document.write(`两个数的和是${num1 + num2}`)

    // let str = String(123)
    // let str = 12322
    // console.log(str.toString());

    // let obj = { name: "John", age: 30 };
    let obj =  [1, 2, 3]
    console.log(obj.toString());

  </script>
</body>

</html>